package com.java.digitalsignagesystem.controller;

import com.java.digitalsignagesystem.entity.Log;
import com.java.digitalsignagesystem.entity.Result;
import com.java.digitalsignagesystem.service.LogService;


import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Log)表控制层
 *
 * @author makejava
 * @since 2023-08-24 14:23:43
 */
@RestController
@RequestMapping("/log")
public class LogController {
    /**
     * 服务对象
     */
    @Resource
    private LogService logService;


    /**
     * 新增数据
     *
     * @param log 实体
     * @return 新增结果
     */
    //@ApiOperation("新增日志接口")
    @PostMapping("/add")
    public Result add(Log log) {
        return Result.success(this.logService.insert(log));
    }



}

